﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core.Mvc.Framework.Action;

namespace Core.Mvc.Framework
{
    /// <summary>
    /// Controller interface
    /// </summary>
    public interface IController
    {
        /// <summary>
        /// Executes the specified action request.
        /// </summary>
        /// <param name="actionRequest">The action request.</param>
        /// <returns></returns>
        ActionResult Excute(ActionRequest actionRequest);
        /// <summary>
        /// Views the specified args.
        /// </summary>
        /// <param name="args">The args.</param>
        /// <param name="name">The name.</param>
        /// <param name="action">The action.</param>
        /// <returns></returns>
        ActionResult View(String name, String action, params object[] parameters);
    }
}
